package org.dromara.system.domain.bo;

import org.dromara.system.domain.SkyAccessLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 天眼查调用记录业务对象 sky_access_log
 *
 * @author Lion Li
 * @date 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkyAccessLog.class, reverseConvertGenerate = false)
public class SkyAccessLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 请求接口ID
     */
    @NotBlank(message = "请求接口ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkCode;

    /**
     * 请求接口路径
     */
    @NotBlank(message = "请求接口路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkUrl;

    /**
     * 请求接口时间
     */
    @NotNull(message = "请求接口时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date accessDate;

    /**
     * 请求人
     */
    @NotBlank(message = "请求人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accessPerson;


}
